import type { InspectionDataModel } from './models';

import { requestClient } from '#/api/request';

/**
 * 查询关联点检记录的数据集合
 * @param recordId 点检记录 Id
 * @returns 返回查询结果
 */
export async function getInspectionDataListApi(recordId: number) {
  return requestClient.get<InspectionDataModel[]>(
    '/mes/equipment/inspection/data/list',
    {
      params: { recordId },
    },
  );
}
